package com.ease.plugin.pluginClasses
{
	
	/**
	 * @private
	 **/
	public class VersionUtils
	{
		public static function parseVersionString(version:String):Object
		{
			var versionInfo:Array = version.split(".");
			
			var major:int = 0;
			var minor:int = 0;
			
			if (versionInfo.length >= 1)
			{
				major = parseInt(versionInfo[0]);
			}
			if (versionInfo.length >= 2)
			{
				minor = parseInt(versionInfo[1]);
				
				// Don't lose a significant digit.
				if (minor < 10)
				{
					minor = minor * 10;
				}
			}

			return {major:major, minor:minor};
		}
	}
}